#ifndef NETGAME_H
#define NETGAME_H

#include "board.h"
#include <QTcpServer>
#include <QTcpSocket>

class NetGame : public Board
{
    Q_OBJECT
public:
    NetGame(MainWindow* _mainWindow,bool isServer);
    QTcpServer *server;
    QTcpSocket *socket;
    void clickHandler(int clickId, int row, int col);

public slots:
    void slotNewConnection();
    void slotRecv();
};

#endif // NETGAME_H
